<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/10 0010
 * Time: 16:08
 */
namespace app\admin\controller;
use think\Controller;
use think\Db;
use think\Request;

class Api extends Controller
{
    public function liandong(Request $request){
        $id = $request->param('id',null);
        $biao = $request->param('biao',null);
        $data = [];
        if($id){
            $data = Db::name($biao)->where('pid',$id)->order('sort desc')->select();
        }
        return $data;
    }

}